import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //获取持仓核对表格数据
  getPositionTableData: (query) => api.post(`${config.interfaces.type1}amboCompare/query2`, query),
  //获取资金核对表格数据
  getFundTableData: (query) => api.post(`${config.interfaces.type1}amboCompare/queryFinacing`, query),
  // 批量调平
  batchLevel: (query) => api.post(`${config.interfaces.type1}amboCompare/finacingYjcp`, query),
  // 批量回溯
  batchBack: (query) => api.post(`${config.interfaces.type1}amboCompare/hsFinacing`, query),
  // 获取流水对比
  getturnover: (query) => api.post(`${config.interfaces.type1}assetTradeJnl/queryHoldJnl`, query),
  // 持仓核对调平
  adjustSecurity: (query) => api.post(`${config.interfaces.type1}holdCompare/holdCompare`, query),
  // 持仓核对回溯
  Backtracking: (query) => api.get(`${config.interfaces.type1}holdCompare/holdCompareReverse`, query),
};
